package main

import (
	"fmt"
	"net"
	"time"
)

func main() {
	conn, _ := net.Dial("tcp", ":10111")

	for {
		bytes := make([]byte, 1024)
		readLen, _ := conn.Read(bytes)
		s := string(bytes[:readLen])
		fmt.Println(s)

		time.Sleep(time.Second)
	}
}
